package cn.lijida.weiwei.favor.modules.relation.entity;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.TableId;

import cn.lijida.weiwei.favor.commons.validator.AddGroup;
import cn.lijida.weiwei.favor.commons.validator.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 关系
 * </p>
 *
 * @author jobob
 * @since 2019-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FavorRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关系编号
     */
    @TableId
    @NotNull(message = "送礼编号不能为空", groups = UpdateGroup.class)
    private Long relationId;

    /**
     * 关系类型
     */
    @NotNull(message = "送礼类型不能为空", groups = AddGroup.class)
    private Integer relationType;

    /**
     * 成员编号
     */
    private Long memberId;

    /**
     * 家庭编号
     */
    @NotNull(message = "家庭编号不能为空", groups = AddGroup.class)
    private Long homeId;

    /**
     * 关系时间
     */
    @NotNull(message = "送礼时间不能为空", groups = AddGroup.class)
    private Date relationTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 删除标记
     */
    private Boolean delFalg;

    /**
     * 宾客编号
     */
    @NotNull(message = "宾客编号不能为空", groups = AddGroup.class)
    private Long guestId;


}
